namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("SYS_USERS")]
    public partial class SYS_USERS
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public SYS_USERS()
        {
            WORKFLOW_AUDITDETAIL = new HashSet<WORKFLOW_AUDITDETAIL>();
            WORKFLOW_DETAIL = new HashSet<WORKFLOW_DETAIL>();
        }

        [Key]
        [StringLength(40)]
        public string USER_ID { get; set; }

        [StringLength(40)]
        public string DEPT_ID { get; set; }

        [Required]
        [StringLength(20)]
        public string USER_NAME { get; set; }

        [Required]
        [StringLength(64)]
        public string PASSWORD { get; set; }

        public bool ENABLED { get; set; }

        [StringLength(20)]
        public string REAL_NAME { get; set; }

        [StringLength(20)]
        public string PHONE { get; set; }

        [StringLength(20)]
        public string IDCARD { get; set; }

        public DateTime? CREATE_TIME { get; set; }

        [StringLength(64)]
        public string CARD_NO { get; set; }

        [StringLength(64)]
        public string RFID { get; set; }

        public DateTime? PPASSWORD_TIME { get; set; }

        public bool? IS_API { get; set; }

        public bool? IS_RESET { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<WORKFLOW_AUDITDETAIL> WORKFLOW_AUDITDETAIL { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<WORKFLOW_DETAIL> WORKFLOW_DETAIL { get; set; }
    }
}
